<div class='p-w l-lr'><div class='p-i-w'>
	<?php $form = $this->beginWidget('CActiveFormAdv', array(
		'method' => 'get',
		'action' => $this->createUrl($this->action->id),
	))?>
	<div class='l-box l-l'>
		<div class='sb-w'>
			<h1 class='sb-title'><span>所有分类</span></h1>
			<?php $this->widget('lib.ext.data.DataWidget',array(
				'model' => 'GoodsType',
				'criteria' => array(
					'condition' => 'layer = 1',
				),
				'data' => array(
					'native' => $model,
					'form' => $form
				),
				'view' => 'application.views.partials.platform.native.list_category',
			))?>
		</div>
	</div>

	<div class='l-box l-r'>

		<div class="fieldset">
			<!-- section -->
			<div class="fieldset-title"><h2><span>土特产搜索</span></h2></div>
			<div class="fieldset-content">
				
				<table class='form-tb no-border fc_555 font-body largespacing'>
					<tr>
						<th width=60px>关键字：</th>
						<td><div class='scenic-list-search'>
							<?php echo $form->textField(new Native(),'title',array(
								'id'=>'native-name',
								'init-value' => '请输入您所要查找的土特产关键字'
							))?>
							<script>bindTextInit($('#native-name'),$('#<?php echo $form->id?>'));</script>
							<input type='submit' class="a_submit" value='搜索'>
						</div></td>
					</tr>
					<tr>
						<th >产地：</th>
						<td>
							<?php LyscHtml::buttonList($form, $model, 'field',
								GoodsNative::fieldCity()
							)?>
						</td>
					</tr>
					<tr>
						<th >价格：</th>
						<td>
							<?php LyscHtml::buttonList($form, $model, 'price',
								Yii::app()->enum->options('goods.price', 'nolimit')
							)?>
						</td>
					</tr>
				</table>
			</div>
		</div>
	
		<div class='box ttc-li-w bh-Border_1'>
			<ul class='ttc-items'>
				<?php foreach ($data->getData() as $one):?>
				<li>
					<div class='ttc-i-img-w'>
						<a href='<?php echo Yii::app()->controller->createUrl('nativeView',array('id'=>$one->id));?>' target='<?php echo Yii::app()->option->get('native_list_target');?>' title='<?php echo $one->fullTitle?>'><?php echo $one->img(160,120)?></a>
					</div>
					<div class='ttc-i-desc-w'>
						<p class=''><a class='font-body' href='<?php echo Yii::app()->controller->createUrl('nativeView',array('id'=>$one->id));?>' target='<?php echo Yii::app()->option->get('native_list_target');?>' title='<?php echo $one->fullTitle?>'><?php echo $one->title(13)?></a></p>
						<p><span class='fc-red bh-strong'>价格：<span class='bh-font14'>￥<?php echo intval(CHtml::value($one, 'priceInfo.price_dealer'))?></span></span></p>
						<p class='ttc-i-btns'>
							<a href='<?php echo Yii::app()->controller->createUrl('nativeWrite',array('id'=>$one->id));?>' class='ttc-buy-btn' target='<?php echo Yii::app()->option->get('native_order_target');?>'>购买</a>
						</p>
					</div>
				</li>
				<?php endforeach;?>
			</ul>
			<div class='bh-clear'></div>
		</div>
		<div class="bh-c-shuizi1-c-yy bh-mLeft20">
			<?php $this->widget('LyLinkPager',array(
				'pages' => $data->pagination,
			))?>
		</div>
	</div>
	<?php $this->endWidget()?>
	<div class='bh-clear'></div>
	<!-- 友情链接 -->
	<?php $this->widget('lib.ext.data.DataWidget',array(
		'model' => 'FriendLink',
		'view' => 'application.views.partials.aircraft.friendlink',
	))?>
</div></div>
